package com.liam.design.decorator;

import com.liam.design.decorator.component.Drink;
import com.liam.design.decorator.componentConcrete.MilkTea;
import com.liam.design.decorator.decoratorConcrete.Coconut;
import com.liam.design.decorator.decoratorConcrete.Pearl;
import com.liam.design.decorator.decoratorConcrete.Pudding;

public class Test {

    public static void main(String[] args) {
        Drink milkTea = new MilkTea();
        System.out.println(milkTea.getName() + "\t" + milkTea.getPrice());

        Drink pudding = new Pudding(milkTea);
        System.out.println(pudding.getName() + "\t" + pudding.getPrice());

        Drink pearl = new Pearl(pudding);
        System.out.println(pearl.getName() + "\t" + pearl.getPrice());

        Drink coconut = new Coconut(milkTea);
        System.out.println(coconut.getName() + "\t" + coconut.getPrice());


    }
}
